package entity

// 数据库表明自定义，默认为model的复数形式，比如这里默认为 users
func (EpgChannel) TableName() string {
	return "epg_channel"
}

type EpgChannel struct {
	Id         int      `json:"id" gorm:"primaryKey;autoIncrement"`
	Name       string   `json:"name" gorm:"column:name;type:varchar(100);comment:频道名"`
	Source     string   `json:"source" gorm:"column:source;type:varchar(100);comment:采集来源"`
	Logo       string   `json:"logo" gorm:"column:logo;type:varchar(255);comment:图标"`
	Group      string   `json:"group" gorm:"column:group;type:varchar(100);comment:分组名"`
	IsMainland string   `json:"isMainland" gorm:"column:is_mainland;type:varchar(1);comment:是否中国大陆 1是 0否"`
	Province   string   `json:"province" gorm:"column:province;type:varchar(100);comment:省份"`
	CityCode   string   `json:"cityCode" gorm:"column:city_code;type:varchar(100);comment:区划编码"`
	CityOrder  string   `json:"cityOrder" gorm:"column:city_order;type:varchar(100);comment:区划顺序"`
	Type       string   `json:"type" gorm:"column:type;type:varchar(100);comment:类型"`
	TypeOrder  string   `json:"typeOrder" gorm:"column:type_order;type:varchar(100);comment:类型顺序"`
	Order      string   `json:"order" gorm:"column:order;type:varchar(100);comment:顺序"`
	CreateTime NullTime `json:"createTime" gorm:"column:create_time;type:datetime;comment:创建时间"`
	UpdateTime NullTime `json:"updateTime" gorm:"column:update_time;type:datetime;comment:更新时间"`
}
